<table>
  <tr>
    <th>商品</th>
    <th class="order-detail-th">商品详情</th>
    <th>单价</th>
    <th>数量</th>
    <th>操作</th>
  </tr>
</table>
{if $list}
<div class="myorder-list clearfix">
  <div class="myorder-box">
    <ul>
      {foreach $list as $k=>$v}
      <li class="{if $v.progress == 1}myorder-curr{/if}">
        <div class="myorder-num">
          <p>{date('Y/m/d', strtotime($v.add_time))}</p>
          <a href="javascript:void(0);">{number_format($v.price, 2)}元</a>
        </div>
        <span class="myorder-yy"><i></i></span>
        <div class="myorder-wrap clearfix">
          <em class="myorder-arrow"></em>
          <div class="myorder-l">
            <div class="myorder-txt">
              <span class="on">{order_config::$dealer_progress[$v.progress]}</span>
              <span>订单号：{$v.order_code} </span>　　
              <span>{date('Y年m月d日', strtotime($v.add_time))}</span>　
              <span>{date('H:i', strtotime($v.add_time))}</span>
            </div>
            {foreach $v.detail as $key=>$value}
            <dl class="myorder-dl {if $key}myorder-on{/if} clearfix" data-goods_num="{$value.goods_num}" data-sku_id="{$value.sku_id}" data-is_gift="{$value.is_gift}" data-is_promotion="{$value.is_promotion}">
              <dt class="js_openLink" data-target="_blank" data-href="{AnUrl("goods/{$value.goods_id}")}"><img src="{_image($value.goods_cover)}" width="62"/></dt>
              <dd class="myoder-dl1">
                <p>
                <a href="{AnUrl("goods/{$value.goods_id}")}" target="_blank">{$value.goods_title}{if $value.is_gift == 1} <span class="center-gift">赠品</span>{/if}{if $value.is_promotion == 1} <span class="center-promotion-gift">加价购</span>{/if}</a>
                {*
                <a class="goods-snapshot" href="{AnUrl("goods/{$value.goods_id}/{$value.sku_snapshot_id}")}" target="_blank">[商品快照]</a>
                *}
                </p>
                <p>{goods_helper::get_sku_property_value($value.sku_id)}</p>
              </dd>
              <dd class="myoder-dl2">{number_format($value.goods_price, 2)}元</dd>
              <dd class="myoder-dl3">{$value.goods_num}</dd>
              <dd></dd>
            </dl>
            {/foreach}
          </div>
          <div class="myorder-r">
            <p class="js_openLink" data-login="1" data-href="{AnUrl("order/{$v.id}")}">订单详情</p>
            {if $v.progress == 1}
            <a class="myorder-pay js_openLink" data-target="_blank" data-href="{order_helper::get_order_pay_url($v.id)}">立即支付</a>
            {elseif $v.progress == 10}
            <p class="js_openLink js_cancelOrder" data-order_id="{$v.id}">取消订单</p>
            {elseif $v.progress == 15}
            <a class="myorder-pay js_sureReceiver js_openLink" data-order_id="{$v.id}">确认收货</a>
            {elseif $v.progress == 20}
            <p class="js_openLink" data-login="1" data-href="{AnUrl("service?order_id={$v.id}")}">申请售后</p>
            {elseif $v.progress == 0}
            <a class="myorder-pay2 js_replayToCart" href="javascript:void(0);">再次购买</a>
            {/if}
            {$refund_info = service_helper::get_service_info($v.id)}
            {if $refund_info}
            <p class="js_openLink" data-login="1" data-href="{AnUrl("service/{$refund_info.id}")}">{$refund_info.status}</p>
            {/if}
          </div>
        </div>
      </li>
      {/foreach}
    </ul>
  </div>
</div>
{include_core file="lib/page_fav.html"}
<!--myorder-list  end-->
{else}
<div class="menu-all"><p>暂无订单</p></div>
{/if}